namespace go admin_express
include "common.thrift"
include "error_code.thrift"
struct Express{
	1:  i64    ID    (api.body = "id")
	2:  string Name  (api.body = "name")
	3:  i64    Sort  (api.body = "sort")
	4:  string Code  (api.body = "code")
}

struct GetExpressListRequest{
	1:  i64 Page = 1  (api.query = "page")
	2:  i64 Size = 20 (api.query = "size")
}

struct GetExpressListResponse{
	1:  error_code.ErrorCode Code  (api.body = 'code')
	2:  list<Express>        Data  (api.body = 'data')
	3:  i64                  Page  (api.body = 'page')
	4:  i64                  Size  (api.body = 'size')
}

struct GetExpressSelectListRequest{

}

struct GetExpressSelectListResponse{
	1:  error_code.ErrorCode Code  (api.body = 'code')
	2:  list<Express>        Data  (api.body = 'data')
}

struct UpdateExpressRequest{
	1:  i64    ID    (api.body = "id")
	2:  string Name  (api.body = 'name')
	3:  string Code  (api.body = 'code')
	4:  i64    Sort  (api.body = 'sort')
}

struct UpdateExpressResponse{
	1:  error_code.ErrorCode Code  (api.body = 'code')
}

struct CreateExpressRequest{
	1:  i64    Sort  (api.body = "sort")
	2:  string Name  (api.body = 'name')
	3:  string Code  (api.body = 'code')
}

struct CreateExpressResponse{
	1:  error_code.ErrorCode Code  (api.body = 'code')
}

struct DeleteExpressRequest{
	1:  list<i64> IDs  (api.body = "ids")
}

struct DeleteExpressResponse{
	1:  error_code.ErrorCode Code  (api.body = 'code')
}

struct GetExpressInfoRequest{
	1:  i64 ID  (api.query = "id")
}

struct GetExpressInfoResponse{
	1:  error_code.ErrorCode Code  (api.body = 'code')
	2:  Express              Data  (api.body = 'data')
}
